﻿<UserControl x:Class="FullDayStrategyPlugin.DailyChart"
			 x:ClassModifier="internal"
			 
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d" 
			 
			 xmlns:Charts="clr-namespace:Visiblox.Charts;assembly=Visiblox.Charts"
             xmlns:Converters="clr-namespace:Utils.Wpf.Converters;assembly=Utils"
			 
			 Background="#1F1F1F" 
			 
             d:DesignHeight="200" 
			 d:DesignWidth="1500" >

	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="pack://application:,,,/Plugins;component/PluginTheme.xaml" />
			</ResourceDictionary.MergedDictionaries>
			<Converters:MultiplierConverter x:Key="MultiplierConverter" />
			<Style x:Key="LegendStyle" TargetType="Charts:Legend" >
				<Setter Property="Foreground" Value="{StaticResource FontBrush}" />
			</Style>
			<Style x:Key="OperationHorizontalLineStyle" TargetType="Line">
				<Setter Property="Stroke" Value="#77BBD1" />
				<Setter Property="StrokeThickness" Value="1" />
				<Setter Property="StrokeDashArray" Value="5 5" />
			</Style>
			<Style x:Key="OperationVerticalLineStyle" TargetType="Line">
				<Setter Property="Stroke" Value="#0080C0" />
				<Setter Property="StrokeThickness" Value="1" />
			</Style>
			<Style x:Key="TitleStyle" TargetType="TextBlock" >
				<Setter Property="Foreground" Value="{StaticResource FontBrush}" />
				<Setter Property="HorizontalAlignment" Value="Center" />
				<Setter Property="FontWeight" Value="Bold" />
				<Setter Property="FontStretch" Value="UltraExpanded" />
				<Setter Property="FontSize" Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}}, Path=FontSize, Converter={StaticResource MultiplierConverter}, ConverterParameter=1.5}" />
			</Style>
		</ResourceDictionary>
	</UserControl.Resources>

	<UserControl.Height>
		<Binding Path="ActualWidth" RelativeSource="{RelativeSource Mode=Self}" Converter="{StaticResource MultiplierConverter}" ConverterParameter="0.1406" />
	</UserControl.Height>

	<Charts:Chart LegendTitle="Series" LegendVisibility="Collapsed" Padding="6" Margin="10" Background="#1F1F1F" LegendStyle="{StaticResource LegendStyle}" TitleStyle="{StaticResource TitleStyle}"  x:Name="Chart" ValidationKey="fjiGWGIJwgvrwpigjwgvWRPIJVBwvWJVWGRI==FWOEgiid/FEQgjiewgmñagdskgORGJID+qPny4sfiej39ri+B+RimHg38HpnYuncqfh3JwxT4mdu1mJFgHWHhTpJGLI1+kXI21mhrywMI5bAD7f64kQFRGIrim6ydMz3aPm+eDO2Cd6RbMd0e8s=BQxSUisl3BaWf/7myRmmlIjRnMU2cA7q+/03ZX9wdj30RzapYANf51ee3Pi8m2rVW6aD7t6Hi4Qy5vv9xpaQYXF5T7XzsafhzS3hbBokp36BoJZg8IrceBj742nQajYyV7trx5GIw9jy/V6r0bvctKYwTim7Kzq+YPWGMtqtQoU=PFJTQUtleVZhbHVlPjxNb2R1bHVzPnh6YlRrc2dYWWJvQUh5VGR6dkNzQXUrUVAxQnM5b2VrZUxxZVdacnRFbUx3OHZlWStBK3pteXg4NGpJbFkzT2hGdlNYbHZDSjlKVGZQTTF4S2ZweWZBVXBGeXgxRnVBMThOcDNETUxXR1JJbTJ6WXA3a1YyMEdYZGU3RnJyTHZjdGhIbW1BZ21PTTdwMFBsNWlSKzNVMDg5M1N4b2hCZlJ5RHdEeE9vdDNlMD08L01vZHVsdXM+PEV4cG9uZW50PkFRQUI8L0V4cG9uZW50PjwvUlNBS2V5VmFsdWU+" >
		<Charts:Chart.Resources>
			<Style x:Key="WhiteLine" TargetType="Line" >
				<Setter Property="Stroke" Value="{StaticResource FontBrush}" />
			</Style>
			<Style x:Key="DarkLine" TargetType="Line" >
				<Setter Property="Stroke" Value="#3F3F3F" />
			</Style>
		</Charts:Chart.Resources>

		<Charts:Chart.YAxis>
			<Charts:LinearAxis AutoScaleToVisibleData="True" IsAutoMarginEnabled="True" Foreground="{StaticResource FontBrush}" MajorTickStyle="{StaticResource WhiteLine}" ShowMinorGridlines="False" ShowMinorTicks="False" MajorGridlineStyle="{StaticResource DarkLine}" LabelFormatString="0.00#' %" />
		</Charts:Chart.YAxis>

		<Charts:Chart.XAxis>
			<Charts:DateTimeAxis AutoScaleToVisibleData="True" IsAutoMarginEnabled="True" Foreground="{StaticResource FontBrush}" MajorTickStyle="{StaticResource WhiteLine}" ShowMinorGridlines="False" ShowMinorTicks="False" MajorGridlineStyle="{StaticResource DarkLine}" />
		</Charts:Chart.XAxis>

		<Charts:Chart.Series>
			<Charts:BandSeries UpperLineStroke="{StaticResource RedHighlightedBrush}" LowerLineStroke="{StaticResource GreenBrush}" AreaFill="#CCFFFFFF" />
		</Charts:Chart.Series>
	</Charts:Chart>
</UserControl>
